<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>浮动,盒子塌陷问题</title>
		<style>
			#main{
				border: 2px outset red;
				/* float:left; */
				height: 110px;
			}
			#main div{
				float: left;
				height: 100px;
				width: 100px;
				background-color: blue;
				margin: 1px;
				color:white;
				text-align: center;
				line-height: 100px;
			}
		</style>
	</head>
	<body>
		<div id="main">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
		</div>
		<p style="border: 1px dashed green;">
			We change lives!
		</p>
	</body>
</html>